set term eps
set output "SecantMethodDemon.eps"
set xrange [0:5]
set label "x_{n-1}" at 4, -1
set arrow from 4,0 to 4,15 nohead dashtype "-" lw 3
set label "x_n" at 3, -1
set arrow from 3,0 to 3,8 nohead dashtype "-" lw 3
set label "x_{n+1}" at 13.0/7, -1
set arrow from 13.0/7, 0 to 13.0/7, 120.0/49 nohead dashtype "-" lw 3
set key at 4,23
plot x*x-1 w l lw 3 title "y=f(x)", 7*x-13 w l lw 3 title "secant line", 0 w l lw 3 title "y=0"
